package org.waigua.moka.dto;

import java.util.Map;

public class ContentApiDto extends InnerApiDto
{

	private Map<String, String> params;

	protected ContentApiDto(String host, String v, String pvc, String pvb, String sid, Map<String, String> params)
	{
		super(host, v, pvc, pvb, sid);
		StringBuffer sb = new StringBuffer();
		for(String key : params.keySet())
		{
			sb.append(key).append("=").append(params.get(key));
			sb.append("&");
		}
		setBody(sb.toString());
		this.setContentLength(getBody().length());
		this.params = params;
	}

	public Map<String, String> getParams()
	{
		return params;
	}
}
